Repository navigation
[0.9.0] Season seats: set_aside_season_block, retrieve_season_block, release_season_block, inventoryMode - #13
Merged
Merged
Conversation
…sales and event series
… settings, all 56 webhook names, events series_key
…he p2a-api review
…tle (2.16c) createEventSeries takes fromEventKey: an event already set up becomes the first date under its own key and every other date is a copy of it; name and chartKey are then left out. Every date of a series carries the series' plain name. Matches seatmap slice 2.16c.
Adds releaseSeasonLapsedOffers (POST /v1/seasons/{key}/renewal-offers/release-lapsed, no body, header replay, 202 with the job). retrieveSeasonHostedRenewals pages with cursor and limit (1-500) and answers nextCursor, and listSeasonRenewalOffers pages the same way (1-100). createSeasonRenewalOffers answers 201 {offers} for 100 contracts or fewer and 202 {job, batchId} above that. The bring-across (createSeasonHolderImportFromSeason) answers 202 with a holder_import job above 100 holders. Renewal emails take up to 20,000 offer ids; above that, 422 too_many_offer_ids.
…e_abandoned (p2b) The public API changes in p2b (b88ed794e..ee7df2921): season_date_cancel_void_job_id names the date_cancel_void job a date cancel starts (season.ticket.voided reason date_cancelled); season_holder_import_rows_per_call sizes a create_season_holder_import call by its dates, now 2 to 50 (a call over it raises SeatLayerValidationError invalid_rows with maxRows); update_season documents singleTicketDates.jobRefused and its exact-retry guard; create_event_series documents 409 create_abandoned. Both helpers are module functions exported from seatlayer.
…b audit) updateEventSeries sends only the prices that change: each date keeps its own price for every category or tier left out. A season's null transfer or return cut-off means the club default from Settings > Ticket site, or until the date starts when the club has none. Holder transfers and returns through the secret key are not stopped by the club's customer switches; cut-offs still apply.
…part C) A date its season cancelled never opens again: moving its sales to testable or live, or reopening it, answers 409 season_date_cancelled, and an event series "sales on" leaves it closed as a failed item of the job (season_date_cancelled; not in failedDates). A cancelled date can't be moved, postponed, replaced or marked as taken place: 409 performance_cancelled.
pietechsolution
force-pushed
the
navin/season-block-0.10.0
branch
2 times, most recently
from
November 10, 2026 02:31
3245551 to
1244a02
Compare
…release_season_block; season.block.ready/released webhook names; webhooks accept every typed name; the 202 date-leave answer guard. No version bump: publish only once the phase 4 API is on production
pietechsolution
force-pushed
the
navin/season-block-0.10.0
branch
from
November 10, 2026 05:48
1244a02 to
a643e22
Compare
Merged
pietechsolution
marked this pull request as ready for review
November 11, 2026 10:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Season seats for
seatlayer(Python), part of the 0.9.0 release. One release, 0.9.0, carries season 2a (#12) and this PR (decided 10 Nov).season-2a-serverso it builds on the season-2a methods. Its name still says 0.10.0, from before the decision: renaming a head branch would close the PR.pyproject.tomland__version__are untouched.A webhook problem 0.9.0 ships fixed
webhooks.create(...)andwebhooks.update(...)check names againstWebhooks._EVENT_NAMES, and raiseValueErrorfor any other.season-2a-serverit is a hand list of 18, with only the threeseason.ticket.transfer_*season names, soseason.plan.publishedand the rest are refused.WebhookEventNametypes all of these names, and the API accepts all of them (KNOWN_EVENTSin the app repo'sworkers/api/src/webhooks.ts)._EVENT_NAMES = frozenset(get_args(WebhookEventName)), with a test that every typed name is accepted.WebhookEventNametypes is one the API accepts (checked against the API's list: 58 of its 63; the 5guest.*names aren't typed here yet).What it adds
Built to
docs/season-block-2026-11-08/contract.mdin the app repo (§2, §5, §6, and §8 "Amendments, 9 Nov"). Method names are the operationIds, snake_cased (AGENTS.md).Methods:
seasons.set_aside_season_block(season_key, expected_revision, keep_for_single_tickets=None, idempotency_key=None);seasons.retrieve_season_block(season_key);seasons.release_season_block(season_key, expected_revision, scope, event_keys=None, at=None, reason=None, idempotency_key=None).Both writes use header replay, so an Idempotency-Key is generated when none is given, as on
refund_season_performance. Each write answers{"job": ..., "block": ...}; follow the job withretrieve_season_bulk_job.inventory_mode("block"|"per_hold") oncreate_seasonandupdate_season, sent asinventoryModeonly when given."block"opts the season into season seats; the default staysper_hold. Every Season answer carriesinventoryMode.Types:
SeasonSeatSelection,SeasonBlockReleaseScope,SeasonDateLeavePending. The webhook names areseason.block.readyandseason.block.released.The 202 while a date leaves every season seat (
create_season_amendmentcancel,mark_season_performance_past):is_season_date_leave_pending(result). The return types are unchanged (Any).Errors: no new classes or constants. The new codes come through
SeatLayerErrorand its subclasses withcode(§8 item 4). The CHANGELOG lists them, now including every code the 3 calls andinventoryModecan send (SEASON_BLOCK_API_BUSINESS_ERRORSin the app repo).Docs: a "Season seats" section at the end of the README's "Fixed Renewable Seasons": opt in with
inventory_mode, set the seats aside, follow the job, read the block, release to single sale (now or at a set time), the two webhook names, the 202 guard, refusals throughSeatLayerErrorwithcode, and partner seats staying out of the block.CHANGELOG: the "Next: 0.9.0" section. The version PR joins it with the season-2a section under
## 0.9.0. Its webhook line now says what 0.8.0 did (it had said "0.9.0 refused…", which stops being true once both ship as 0.9.0).Files changed
CHANGELOG.md,README.md,src/seatlayer/__init__.py,src/seatlayer/resources.py,src/seatlayer/types.py,tests/test_client.py,tests/test_seasons.py(7 files, +413 −29).Checks
ruff check src tests,mypy,pytest -q) on Python 3.14, re-run 10 Nov on this commit: green. ruff: all checks passed; mypy: no issues in 7 source files; pytest 133/133.SeatLayerConflictErrorwith itscode.inventory_modeon create and update.ast.parse), and the calls by hand against the signatures inresources.py.season-phase4-python-compat.pyin the app session's notes; nothing is sent.pip download seatlayer==0.8.0 --no-deps, re-run 10 Nov)create_season_amendment, a Season answer carryinginventoryMode, and409 season_block_packagesonupdate_season. The other 10 are n/a: 0.8.0 has neither the season-2a calls nor theseseason-2a-serverheade3ab392inventoryModeand409 season_block_packagessrc/), including the 3 new calls and409 season_block_not_enabledRelease steps for the owner
main, with no tag.mainand retarget it tomain; the gate green; merge.main'ssrc/: both all PASS;completed, read, release withat, read the release job.0.9.0in bothpyproject.tomlandsrc/seatlayer/__init__.py, which must agree. Join the CHANGELOG's season-2a section ("Unreleased") and "Next: 0.9.0" under a dated## 0.9.0. Merge tomain.git tag v0.9.0 && git push origin v0.9.0.release.ymlpublishes through PyPI Trusted Publishing, and refuses if the tag and either version disagree.https://pypi.org/pypi/seatlayer/jsonreads0.9.0;pip install seatlayer==0.9.0andpython -c "import seatlayer; print(seatlayer.__version__)";Failure modes
inventory_modewould be ignored. Step 5 waits for production.is_season_date_leave_pending: it would read the 202 body as the amendment. The return type isAny, so the README and the docstrings point at the guard.WebhookEventName, a name typed here but unknown to the API would reach the API and be refused there. Today every typed name is one the API accepts.inventoryMode(compat matrix). It can't call the 3 new routes.Open risks
/server-api/seasons/#season-seats), which goes live with paiteq/seatmap #2063. Until then the link lands on the top of the Seasons page._EVENT_NAMESstill says "0.9.0 listed 18 by hand"; it means the season-2a branch. This amend touched only the README and CHANGELOG.